package com.cy.study.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@Accessors(chain = true)
public class ExamPageRes {

    /**
     * 试卷id
     */
    private Integer id;

    /**
     * 试卷名
     */
    private String examName;

    /**
     * 课程编号
     */
    private Integer courseNum;

    /**
     * 所属专业名
     */
    private String majorName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
